<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
     <h1>springMVC字节流输入上传文件</h1>   
<form name="userForm1" action="/upload/file" enctype="multipart/form-data" method="post"> 
        <input type="file" name="file"/>
    <input type="submit" value="上传"/>
</form>
  
<form name="userForm2" action="/upload/file" enctype="multipart/form-data" method="post">
    <div id="newUpload2">
        <input type="file" name="file">
    </div>
    <input type="submit" value="上传">
</form>
</body>
</html>